//
//  RecordModel.m
//  geiTA
//
//  Created by 杨元龙 on 14-11-20.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "RecordModel.h"

@implementation RecordModel
- (void)dealloc
{
    [_photo release];
    [_name release];
    [_sex release];
    [_remindDate release];
    [_phone release];
    [_relationship release];
    [_note release];
    [super dealloc];
}
- (instancetype)initWithId:(NSInteger)recordid name:(NSString *)name sex :(NSString *)sex remindDate:(NSString *)remindDate phone:(NSString *)phone relationship:(NSString *)relationship note:(NSString *)note photo:(NSString *)photo
{
    self = [super init];
    if (self) {
        
        self.recordid =recordid;
        self.photo =photo;
        self.name =name;
        self.sex =sex;
        self.remindDate = remindDate;
        self.phone =phone;
        self.relationship = relationship;
        self.note =note;
    }
    return self;
}

+ (instancetype)ReconrdModelWithId:(NSInteger)recordid name:(NSString *)name sex :(NSString *)sex remindDate:(NSString *)remindDate phone:(NSString *)phone relationship:(NSString *)relationship note:(NSString *)note photo:(NSString *)photo
{
    
    RecordModel *modfel = [[RecordModel alloc]initWithId:recordid name:name sex:sex remindDate:remindDate phone:phone relationship:relationship note:note photo:photo];
    return  [modfel autorelease];
}

@end
